<extend name="./Common/View/EasyUI/form.html"/>
<block name="form">
    <div class="row">
        <div class="span12">
            <form method="post" id="pageForm" class="form-horizontal" action="Sys/Identity/edit">
                <input name="id" value="{$vo.id}" type="hidden">
                <input name="is_default" value="{$vo.is_default}" type="hidden">
                <table class="table table-bordered table-striped">
                    <tbody>
                    <tr>
                        <th colspan="4">身份信息</th>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>身份名称:</td>
                        <td>
                            <input name="title" id="title" type="text" value="{$vo.title}" placeholder="请输入身份名称"
                                   class="easyui-validatebox"
                                   data-options="required:true,validType:'length[1,20]'">
                        </td>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%"><span class="text-error">*</span>默认角色:</td>
                        <td width="35%">
                            <select name="role_id" id="role_id" class="easyui-validatebox" data-options="required:true"></select>
                        </td>
                    </tr>
                    <tr>
                        <td class="revise-left" width="15%">身份状态:</td>
                        <td>
                            <label class="radio inline"><input type="radio" name="status" value="1"
                                <if condition="$vo.status eq 1"> checked="checked"</if>
                                >启用</label>
                            <label class="radio inline"><input type="radio" name="status" value="0"
                                <if condition="$vo.status eq 0"> checked="checked"</if>
                                >禁用</label>
                            <span class="help-inline"></span>
                        </td>
                    </tr>
                    <tr>
                        <td>身份说明</td>
                        <td colspan="3">
                            <textarea cols="150" rows="3" name="remark" style="width: 400px;">{$vo.remark}</textarea>
                        </td>
                    </tr>

                    </tbody>
                </table>

            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        $(function () {
            app.combobox('#role_id', 'Sys/Role/lists', {value:{$vo.role_id}});
        })
    </script>
</block>